package daytrader.lib;

public class StockMath {
	public int round(float in)
	{		
		return Math.round(in);
	}
	
	public int floor(float x) {
		return ((int) x);
	}
	
	public int ceiling(float x) {
		return ((int) x) + 1;
	}
	
	public float pow(float x, int p) {
		return (float)Math.pow((float)x, p);
	}
	
	public float abs(float x) {
		return Math.abs(x);
	}
	
	public float max(float a, float b) {
		return Math.max(a, b);
	}
	
	public float min(float a, float b) {
		return Math.min(a, b);
	}
	
}
